<script setup lang="ts">
import { reactive } from 'vue'
import { login } from '@/api/home/LoginService'
import { useRouter } from 'vue-router'


const router = useRouter()
    const formData = reactive({
        accountNo:'',
        password:'',
    });
    const imageurl = '../image/22.jpg';

    const handleLogin = () => {
        console.log('输出22---->');
        router.push('/');
        //this.$router.push('/');
    }

</script>

<template>
  <div class="full-page" >
    <div style="width: 30%;height: auto;">
      <div style="width: 100%;height: 400px;">
        <el-image style="width: 100%; height: 100%" :src="imageurl" />
      </div>
      
    </div>
    <div style="width: 25%;height: auto;">
      <div style="width: 100%;height: 400px;background-color: white;">
        <br><br><br>
        <h3>欢迎登陆国际开趴</h3>
        <br>
        <el-form style="max-width: 600px;margin-left: 20px;margin-right: 20px;" :model="formData">
          <el-form-item label="账号">
              <el-input v-model="formData.accountNo" />
          </el-form-item>
          <el-form-item label="密码">
              <el-input type="password" v-model="formData.password" />
          </el-form-item>
          <el-button type="primary" style="width: 100%;" @click="handleLogin">
            <!-- <el-icon style="vertical-align: middle">
              <Search />
            </el-icon> -->
            <span style="vertical-align: middle"> 登陆 </span>
          </el-button>
          
        </el-form>
      </div>
    </div>
  </div>
  
  
</template>

<style scoped>
.full-page {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100vh;
  background-color: bisque;
}
.ndiv {
  width: 500px;
}
</style>